package com.hdoit.apollo.logical.stock.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.hdoit.apollo.logical.stock.dao.IOutStockCollocationDao;
import com.hdoit.apollo.logical.stock.model.OutStockCollocation;
import com.hdoit.apollo.logical.stock.service.IOutStockCollocationService;
import com.hdoit.apollo.logical.viewmodel.billing.BillingSearch;
import com.hdoit.apollo.logical.viewmodel.billing.BillingStat;
import com.hdoit.apollo.logical.viewmodel.billing.BillingDetailed;
import com.tennetcn.data.dao.base.impl.SuperService;
import com.tennetcn.data.message.PagerModel;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 14:15:51
 * @comment
 */
@Component
public class OutStockCollocationServiceImpl extends SuperService<OutStockCollocation> implements IOutStockCollocationService{
	
	@Autowired
	private IOutStockCollocationDao outStockCollocationDao;
	
	@Override
	public boolean deleteOutStockShowCollocation(String showId) {
		return outStockCollocationDao.deleteOutStockShowCollocation(showId);
	}

	@Override
	public List<BillingDetailed> queryListByDetailed(BillingSearch search,PagerModel pagerModel) {
		
		return outStockCollocationDao.queryListByDetailed(search,pagerModel);
	}

	@Override
	public BillingStat querySummaryStat(BillingSearch search) {
		
		return outStockCollocationDao.querySummaryStat(search);
	}

	@Override
	public int queryCountByDetailed(BillingSearch search) {
		
		return outStockCollocationDao.queryCountByDetailed(search);
	}

	@Override
	public List<BillingStat> queryListBySummary(BillingSearch search, PagerModel pagerModel) {
		
		return outStockCollocationDao.queryListBySummary(search, pagerModel);
	}

	@Override
	public int queryCountBySummary(BillingSearch search) {
		
		return outStockCollocationDao.queryCountBySummary(search);
	}

	@Override
	public OutStockCollocation queryModelByBilling(String collocationId,
			String billingId) {
		
		return outStockCollocationDao.queryModelByBilling(collocationId,billingId);
	}

	@Override
	public List<Cargo> querySaleCargoList(BillingSearch search) {
		
		return outStockCollocationDao.querySaleCargoList(search);
	}

}